#include <stdio.h>
#include <stdlib.h>

void Strcat_2(char *front2, const char *behind2) 
{
    while (*front2 != '\0') 
    {
        front2++;
    }
    while (*behind2 != '\0') 
    {
        *front2 = *behind2;
        front2++;
        behind2++;
    }
    *front2 = '\0';
}

int main() 
{
    char a[10] = "Hello, ";
    const char *b = "world!";    
    Strcat_2(a, b);
    printf("使用strcat_2函数拼接后的字符串: %s\n", a);
    system("pause");
    return 0;
}
